package com.wzcl.app.controller.student;

import com.wzcl.app.model.common.RVO;
import com.wzcl.app.model.dto.StudentInfoDto;
import com.wzcl.app.service.ImportStudentService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Iterator;
import java.util.List;

/**
 * @author beingven
 * @Description 读取Excel信息创建用户
 * @createTime 2020年11月14日 07:58:00
 */
@RestController
@RequestMapping("/import")
@Api(value = "导入学生信息controller", tags = {"导入学生信息接口"})
public class ImportStudentInfoController {
    @Resource
    private ImportStudentService importStudentService;

    @PostMapping("/save")
    public RVO importStudentInfo(@RequestBody List<StudentInfoDto> list){
        return importStudentService.getImportStudents(list);
    }
}
